package com.zzl.bonds.ticket.constant;

/**
 * @author : spp
 * @date : 2022/2/16 15:02
 */
public enum SourceTypeEnum {
    /**
     * 自建
     */
    SELF_BUILD(1, "自建");


    private final Integer code;
    private final String value;


    SourceTypeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (SourceTypeEnum statusEnum : SourceTypeEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
